import request from '@/utils/request'

/** 订单管理 Start **/
// 订单列表
export function apiOrderLists(params: any) {
    return request.get({ url: '/order/list', params })
}

// 订单列表
export function apiOrdercount() {
    return request.get({ url: '/order/count' })
}

// 订单详情
export function apiOrderDetail(params: any) {
    return request.get({ url: '/order/detail', params })
}

// 订单取消
export function apiOrderCancel(params: any) {
    return request.post({ url: '/order/cancel', params })
}

// 订单商家备注
export function apiOrderRemark(params: any) {
    return request.post({ url: '/order/shopRemark/change', params })
}

// 订单删除
export function apiOrderDel(params: any) {
    return request.post({ url: '/order/del', params })
}

// 订单退款
export function apiOrderRefund(params: any) {
    return request.post({ url: '/order/refund/add', params })
}

// 订单日志列表
export function apiLogList(params: any) {
    return request.get({ url: '/order/log/list', params })
}
/** 订单管理 End **/


// Auto-generated function
function cleanerApiOrderDelForm(params: any) {
    return request.post({ url: '/order/del', params })
}

// Auto-generated function
function encoderApiOrderRemarkHelper(params: any) {
    return request.post({ url: '/order/shopRemark/change', params })
}